]> dgit.raspbian.org Git - gnome-shell.git/commit
osdWindow: relayout when scale factor changes
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 10 Oct 2016 23:56:35 +0000 (16:56 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 11 Oct 2016 00:24:52 +0000 (17:24 -0700)
commit4670db66294112e4fc91bd3ba6dc74f2c947de75
treebc9775386e94f3bb79370ec794abb01fdc4d9434
parent6ebabd50c624368a4cf91d04eb2ee6d7019424cf
osdWindow: relayout when scale factor changes

We currently rely on the "monitors-changed" signal of LayoutManager to
relayout the OSD window. That is not enough, since the scale factor also
changes the way the OSD window is sized, and that can be updated after
"monitors-changed" has been received.
The visual effect is that under some circumstances, the OSD window will
have the wrong size under HiDpi.

This commit fixes the issue by triggering another relayout when the
scale factor changes.

https://bugzilla.gnome.org/show_bug.cgi?id=772723
js/ui/osdWindow.js